
import 'package:get/get.dart';

import '../../routes/app_pages.dart';
import 'login_api.dart';
import 'login_model.dart';


class LoginLogic extends GetxController {
	final count = 0.obs;
	@override
	void onInit() {
		super.onInit();
	}

	@override
	void onReady() {
		super.onReady();
	}

	@override
	void onClose() {
		super.onClose();
	}

	void increment() => count.value++;

	login() async {
		// var form=LoginForm(
		// 	userName: "xiaobaozi",
		// 	passWord: "123456",
		// 	loginType: "1"
		// );
		// var res=await LoginApi.login(form);
		// print(res);
    Get.toNamed(Routes.HOME);
	}
}
